package com.hdoit.kylin.logical.studentManager.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.kylin.logical.studentManager.dao.IReadDocumentDao;
import com.hdoit.kylin.logical.studentManager.model.ReadDocument;
import com.hdoit.kylin.logical.studentManager.service.IReadDocumentService;
import com.hdoit.kylin.logical.viewmodel.postgraduate.ReadDocumentSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;

/**
 * @author anshengqiang
 * @email
 * @createtime 2017年07月26日 16:17:08
 * @comment
 */
@Component
public class ReadDocumentServiceImpl extends SuperService<ReadDocument> implements
		IReadDocumentService {
	private IReadDocumentDao readDocumentDao;

	public IReadDocumentDao getReadDocumentDao() {
		return readDocumentDao;
	}

	@Resource
	public void setReadDocumentDao(IReadDocumentDao readDocumentDao) {
		this.readDocumentDao = readDocumentDao;
	}

	@Override
	public int queryCount(ReadDocumentSearch search) {
		return readDocumentDao.queryCount(search);
	}

	@Override
	public List<ReadDocument> queryList(ReadDocumentSearch search, PagerModel pagerModel) {
		return readDocumentDao.queryList(search, pagerModel);
	}

	@Override
	public List<ReadDocument> queryListByStudentId(String studentId) {
		// TODO Auto-generated method stub
		return readDocumentDao.queryListByStudentId(studentId);
	}
}